package org.wisteria.framework.web.mvc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类超类
 */
public class SuperEntity implements Serializable {

    /**
     * 删除标志。0：未删除；1：已删除
     */
    @TableField("is_deleted")
    @TableLogic
    public Integer isDeleted = 0;

    /**
     * 创建时间
     */
    @TableField("created_time")
    public Date createdTime = new Date();

    /**
     * 创建人ID
     */
    @TableField("created_id")
    public String createdId;

    /**
     * 创建人姓名
     */
    @TableField("created_name")
    public String createdName;

    /**
     * 修改时间
     */
    @TableField("modified_time")
    public Date modifiedTime = new Date();

    /**
     * 修改人ID
     */
    @TableField("modified_id")
    public String modifiedId;

    /**
     * 修改人姓名
     */
    @TableField("modified_name")
    public String modifiedName;

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getCreatedId() {
        return createdId;
    }

    public void setCreatedId(String createdId) {
        this.createdId = createdId;
    }

    public String getCreatedName() {
        return createdName;
    }

    public void setCreatedName(String createdName) {
        this.createdName = createdName;
    }

    public Date getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    public String getModifiedId() {
        return modifiedId;
    }

    public void setModifiedId(String modifiedId) {
        this.modifiedId = modifiedId;
    }

    public String getModifiedName() {
        return modifiedName;
    }

    public void setModifiedName(String modifiedName) {
        this.modifiedName = modifiedName;
    }
}
